package com.whmall.service.crm.module.companybusinesscertificate.dao;

import com.whmall.service.crm.module.companybusinesscertificate.entity.CompanyBusinessCertificateAttachmentDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Author：yangdong
 * Date：2020/8/3
 * Description：经营证照附件Mapper
 */
@Mapper
public interface CompanyBusinessCertificateAttachmentMapper {

    List<CompanyBusinessCertificateAttachmentDO> listByCertificateId(Long certificateId);

    List<CompanyBusinessCertificateAttachmentDO> listByCertificateIds(@Param("certificateIds") List<Long> certificateIds);

    int batchInsert(List<CompanyBusinessCertificateAttachmentDO> list);

    int batchDelete(@Param("ids") List<Long> ids, @Param("deleted") Integer deleted);
}